package com.smart_campus.activiti.config;

import com.smart_campus.sys.common.ResultObj;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请假状态
 * @aytgor 陈鹏
 * @date 2020/6/28 16:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LeaveConfig {
    private Integer code = 200;
    private String msg = "";
    private Object token = "";

    public LeaveConfig(Integer code) {
        this.code = code;
    }

    public LeaveConfig(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public static final Integer LEAVE_WAIT_FOR_APPROVAL = 1;//开始审批
    public static final Integer LEAVE_in_examination_and_approval = 2;//审批中
    public static final Integer LEAVE_Approval_to_complete_Yes = 3;//审批通过
    public static final Integer LEAVE_Approval_to_complete_No = 4;//审批失败

    public static final LeaveConfig LEAVE_YES = new LeaveConfig(200, "审批成功");
    public static final LeaveConfig LEAVE_NO = new LeaveConfig(-1, "审批失败");
    public static final LeaveConfig LEAVE_ADD_YES = new LeaveConfig(200, "上传成功");
    public static final LeaveConfig LEAVE_ADD_NO = new LeaveConfig(-1, "上传失败");
    public static final LeaveConfig YES = new LeaveConfig(200, "处理成功");
    public static final LeaveConfig NO = new LeaveConfig(-1, "处理失败");
}
